html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: #e4dcca;
}

#btn {
  position: absolute;
  background-color: #a5c4bc;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -70%);
  -moz-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  width: 120px;
  height: 60px;
  line-height: 60px;
  color: white;
  text-align: center;
  letter-spacing: .15em;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-decoration-line: none;
}

.transition-layer {
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.layer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  height: 100vh;
  width: 2500vw;
  background: url(./img/ink.png) no-repeat 0 0;
  background-size: 100% auto;
  visibility: hidden;
}

.active {
  visibility: visible;
  animation: Expand .8s steps(24);
  animation-fill-mode: forwards;
}

.disappear {
  transition: visibility 0s .8s;
  animation: Narrow .8s steps(24);
}

@keyframes Expand {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-2400vw);
  }
}

@keyframes Narrow {
  0% {
    transform: translateX(-2400vw);
  }

  100% {
    transform: translateX(0);
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  color: #e4dcca;
  opacity: 0;
  visibility: hidden;
  background: url(./img/modal-bg.jpg) no-repeat center center;
  background-size: cover;
  text-align: center;
  overflow-y: auto;
  transition: opacity .4s, visibility 0s .4s;
}

.modal .inner {
  position: absolute;
  font-size: 1.3rem;
  width: 100%;
}

.inner h1 {
  font-family: "IM Fell Double Pica", serif;
  font-style: italic;
  max-width: 800px;
  margin: 50px auto;
  margin-top: 100px;
}

.inner p {
  max-width: 800px;
  margin: 50px auto;
  padding: 0 50px;
}

.display {
  opacity: 1;
  visibility: visible;
  transition: opacity .7s .7s, visibility 0s .7s;
}

.close {
  z-index: 1;
  position: fixed;
  top: 20px;
  right: 5%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: url(./img/cd-icon-close.svg) no-repeat center center;
  background-color: rgba(0, 0, 0, 0.3);
}

.close:hover {
  background-color: rgba(0, 0, 0, 1);
}